<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" href="../../../js/plugins/layui-v2.4.5/layui/css/layui.css" />
		<link rel="stylesheet" href="../../../css/reset.css" />
		<link rel="stylesheet" href="../../../css/list.css" />
	</head>
	<body class="p10">
		<div class="container p15">
			<div class="btn-container"><a href="javascript:;" id="addBtn" class="layui-btn layui-btn-sm">添加</a></div>
			<table id="list" lay-filter="list"></table>
		</div>
		<script src="../../../js/jquery-3.3.1.min.js"></script>
		<script src="../../../js/plugins/layui-v2.4.5/layui/layui.js"></script>
		<script src="../../../js/common.js"></script>
		<script>
			var data = [{"created":"2018-11-16","creater":"admin","deptName":"&or;系统运维","emailAddress":"","enabledState":true,"id":"edd9df4d95e04f01b13b2c95c766d78f","modified":"2018-12-20","modifier":"admin","phoneNumber":"13801058686","post":"无","project":[],"superior":"","userName":"wang","userPwd":"30ea31e845a66de552af108bfb0d9451","userSex":1,"userid":"baoyifeng","wechat":""},{"created":"2018-04-19","creater":"admin","deptName":"&or;系统运维","emailAddress":"times@163.com","enabledState":true,"id":"304a3837c36911e7886e4ccc6a41b42a","modified":"2019-03-26","modifier":"admin","phoneNumber":"13717579485","post":"管理人员","project":[],"sortNumber":0,"superior":"","sysAttachmentPortrait":{"filePath":"/201809/","fileType":".jpg","id":"6e36a602f4e948a69df1e9d0192edecb"},"userName":"管理员","userPwd":"79dff8a213abeb23b5219acc00f15b17","userSex":1,"userid":"admin","wechat":""},{"created":"2018-11-15","creater":"admin","deptName":"&or;金泰财务部","emailAddress":"15608906@qq.com","enabledState":true,"id":"8faf8477d9c14d17a791bdc236535461","modified":"2018-11-15","modifier":"admin","phoneNumber":"18611006609","post":"能加空间财务","project":[],"superior":"","userName":"路碟","userPwd":"d923aff6c965999c959a6bbbf3f3440d","userSex":0,"userid":"ludie","wechat":""},{"created":"2018-09-11","creater":"admin","deptName":"&or;富地大厦租务部","emailAddress":"","enabledState":true,"id":"d3f2b32f32eb46e2b07042e8da775841","modified":"2018-09-13","modifier":"admin","phoneNumber":"13811696546","post":"运营","project":[],"superior":"","userName":"苏小娟","userPwd":"00534073a417643a640f1bb40556aaa1","userSex":0,"userid":"suxiaojuan","wechat":""},{"created":"2018-12-19","creater":"admin","deptName":"&or;系统运维","emailAddress":"","enabledState":true,"id":"01ab7e63f5ac4577a73325c1e2972363","modified":"2018-12-19","modifier":"admin","phoneNumber":"13426494355","post":"测试","project":[],"superior":"","userName":"cong","userPwd":"7588f507fc7592270fadf19a021d76ef","userSex":1,"userid":"cong","wechat":""},{"created":"2018-11-15","creater":"admin","deptName":"&or;国益大厦租务部","emailAddress":"751204068@qq.com","enabledState":true,"id":"6b838f9c9e794ea28407e68edf992401","modified":"2018-12-19","modifier":"mengzhuobing","phoneNumber":"15201050517","post":"运营小组","project":[],"superior":"ee760719f3004439b33b6d615cea4130","userName":"刘禹","userPwd":"14286ee10c4786a3bbc5000614783f16","userSex":1,"userid":"liuyu","wechat":""},{"created":"2019-02-26","creater":"mengzhuobing","deptName":"&or;系统运维","emailAddress":"","enabledState":true,"id":"a9c86cf42aed44a68ccba136d97885af","modified":"2019-02-26","modifier":"mengzhuobing","phoneNumber":"13911577196","post":"部长","project":[],"superior":"","userName":"高丽","userPwd":"59ed27b851cd0c6b258ba6b1a337c1b5","userSex":0,"userid":"gaoli","wechat":""},{"created":"2018-11-15","creater":"admin","deptName":"&or;国益大厦租务部","emailAddress":"37594723@qq.com","enabledState":true,"id":"734b8475494e4599ac6b122db5983d72","modified":"2018-12-19","modifier":"mengzhuobing","phoneNumber":"13911107884","post":"运营小组","project":[],"superior":"ee760719f3004439b33b6d615cea4130","userName":"杨国维","userPwd":"bbf4fc1cbc1030d575d90904d723ab8d","userSex":1,"userid":"yangguowei","wechat":""},{"created":"2018-12-29","creater":"admin","deptName":"&or;系统运维","emailAddress":"","enabledState":true,"id":"ae1291d03073421db9fc8722fee84eeb","modified":"2018-12-29","modifier":"admin","phoneNumber":"15811210260","post":"管理员","project":[],"superior":"","userName":"陈龙","userPwd":"49bef83cbcb13f9d94403c730843df06","userSex":1,"userid":"chenlong","wechat":""}];
			layui.use(['table'],function(){
				var table = layui.table;
				//第一个实例
				  table.render({
					elem: '#list'
					,height: '300'
					,url: '' //数据接口
					,page: true //开启分页
					,cols: [[ //表头
					  	{
					  		field: 'xh',
					  		title: '序号',
					  		width: 80,
					  		align: 'center',
					  		templet: function(d) {
					  			return d.LAY_INDEX;
					  		}
					  	}, {
					  		field: 'userid',
					  		title: '登录名',
					  		align: 'center'
					  	}, {
					  		field: 'userName',
					  		title: '用户名',
					  		align: 'center'
					  	}, {
					  		field: 'opt',
					  		title: '操作',
					  		width: 160,
					  		align: 'center',
					  		templet: function(d) {
					  			return `<a href="javascript:;" class="layui-btn layui-btn-normal layui-btn-xs"><i class="layui-icon layui-icon-edit"></i>编辑</a>
					  					  &nbsp;<a href="javascript:;" class="layui-btn layui-btn-danger layui-btn-xs"><i class="layui-icon layui-icon-delete"></i>删除</a>`
					  		}
					  	}
					]]
					,data:data
				  });
			})
			$(function(){
				$("#addBtn").click(function(){
					openLayer('user_add.html','用户新增','600px','450px');
				})
			})
		</script>
	</body>
</html>
